package com.sgcc.fj.pmos.e_fj_mall.adapter;


import android.content.Context;
import android.widget.LinearLayout;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.sgcc.fj.pmos.common.view.LineChartView;
import com.sgcc.pmos.nativesdk.R;

import java.util.ArrayList;

public class CurveAdapter extends BaseQuickAdapter<String, BaseViewHolder> {

    private Context mContext;

    public CurveAdapter(Context context) {
        super(R.layout.item_curve);
        mContext = context;
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, String s) {
        LinearLayout llcontent = baseViewHolder.getView(R.id.ll_content);
        LineChartView lineChartView = new LineChartView(mContext,new ArrayList<>());
        llcontent.addView(lineChartView);
    }
}
